import React from 'react'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import { Provider } from 'react-redux'
import configStore from '../store/configStore'

import Login from '../containers/Login'
import Detail from '../containers/Detail'

const store = configStore();


class RouterMap extends React.Component{
    render(){
        return(
            <Provider store={store}>
                <Router>
                    <div>
                        <Route exact path="/" component={Login}/>
                        <Route path="/detail" component={Detail}/>
                    </div>
                </Router>
            </Provider>

        )
    }
}
export default RouterMap
